package edu.com.wjt219971332.service;

import edu.com.wjt219971332.entity.Competition;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;


public interface CompetitionService {


    Competition queryById(Integer competitionid);


    Page<Competition> queryByPage(Competition competition, PageRequest pageRequest);


    int insert(Competition competition);


    int update(Competition competition);


    boolean deleteById(Integer competitionid);

    List<Competition> queryByusername(String asinger);

//    String queryBysingername(String asinger);
}
